package com.pkk.penguin.frame.know.java.driven.factorybean.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @description: 工厂bean配置
 * @author: peikunkun
 * @create: 2020-08-03 11:38
 **/
@Configuration
public class FactoryBeanConfig {

  /**
   * @Description: 创一个bean【工厂bean创建之后的工厂bean是以&符号开头的,返回的bean是会调用org.springframework.beans.factory.BeanFactory.FACTORY_BEAN_PREFIX作为工厂bean创建bean的标识作为前缀】
   * @return: com.pkk.penguin.frame.know.java.driven.factorybean.config.FactoryBeanSimple
   * @Author: peikunkun
   * @Date: 2020/8/3 0003 上午 11:38
   */
  @Bean
  public PersonFactoryBean personFactoryBean() {
    return new PersonFactoryBean();
  }

}
